/**
 * 
 */
package org.jenkon.commons.reflect.iterator;

import java.lang.reflect.Method;

import org.jenkon.commons.collection.decorator.IteratorDecorator;
import org.jenkon.commons.collection.iterator.ArrayIterator;

/**
 * @author Jens Konopka
 * 
 */
public class DeclaredMethodIterator extends IteratorDecorator<Method> {

	/**
	 * @param obj
	 */
	public DeclaredMethodIterator(final Object obj) {
		this(obj.getClass());
	}

	/**
	 * @param clz
	 */
	public DeclaredMethodIterator(final Class<?> clz) {
		super(new ArrayIterator<Method>(clz.getDeclaredMethods()));
	}

}
